﻿import request from '@/utils/request';
// list
export const banjiList = (params) => {
    return request({
        url: '/banji/page',
        method: 'post',
        data: params,
    })
};
export const banjiDetail = (id) => {
    return request({
        url: '/banji/'+id,
        method: 'get',
    })
};
// add
export const banjiSave = (params) => {
    return request({
        url: '/banji',
        method: 'post',
        data: params,
    })
};
// updt
export const banjiEdit = (params) => {
    return request({
        url: '/banji',
        method: 'put',
        data: params,
    })
};
// delete
export const banjiDelete = (id) => {
    return request({
        url: '/banji/'+id,
        method: 'delete',
    })
};
// pldel
export const banjiDeleteList = (banjis) => {
    return request({
        url: '/banji/deleteList',
        data:{list:banjis},
        method: 'post',
    })
};
// all
export const banjiAllList = () => {
    return request({
        url: '/banji',
        method: 'get',
    })
};

